/*
interface X{
	q:number,
	w:string,
	r:string
}
interface Y{
	q:number
	r:string,
}
type XY = X | Y
let value:XY = {
    q:1,
    r:'r'
}
    */
// 多个接口类型进行联合时属性取交集，但是属性值取并集
interface sqq{
    name:string
 }
 interface ss{
    name:string | number
    [property:string]:any
 }
 type AB = sqq|ss
 let ddd:AB={
    name:2
 }
 